package com.hujia.hjsurprisemeal.model;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

@Data
@TableName("restaurant")
public class Restaurant {
    private Integer restaurantId;  // 餐馆ID
    private String name;  // 餐馆名称
    private String location;  // 餐馆位置
    private String specialty;  // 餐馆特色
    private String address;  // 餐馆地址
    private Double rating;  // 餐馆评分
    private LocalDateTime createdAt;  // 创建时间
    private LocalDateTime updatedAt;  // 更新时间

    public Restaurant(String name, String location, String specialty) {
        this.name = name;
        this.location = location;
        this.specialty = specialty;
    }

    public Restaurant() {
        // 默认构造函数
    }

    // Getters
    public Integer getRestaurantId() {
        return restaurantId;
    }

    public String getName() {
        return name;
    }

    public String getLocation() {
        return location;
    }

    public String getSpecialty() {
        return specialty;
    }

    public String getAddress() {
        return address;
    }

    public Double getRating() {
        return rating;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    // Setters
    public void setRestaurantId(Integer restaurantId) {
        this.restaurantId = restaurantId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public void setSpecialty(String specialty) {
        this.specialty = specialty;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setRating(Double rating) {
        this.rating = rating;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }
}